﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Profile;
using MP.Core.Authentication;

public partial class Member_Control_ViewMember : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    public void LoadData()
    {
        //lblFullName.Text = Profile.FullName;
        //lblAddress.Text = Profile.Address;
        //lblEmail.Text = Profile.Email;
        //lblMobile.Text = Profile.Mobile;
        //lblPhone.Text = Profile.Phone;
    }

    public void LoadDataParam()
    {
        if (!string.IsNullOrEmpty(Request["id"]))
        {
            MPProfileProvider p = new MPProfileProvider();
            SettingsPropertyValueCollection s = p.GetProfileData(Request["id"]);
            if (s != null)
            {
                //lblFullName.Text = s["FullName"].PropertyValue.ToString();
                //lblAddress.Text = s["Address"].PropertyValue.ToString();
                //lblEmail.Text = s["Email"].PropertyValue.ToString();
                //lblMobile.Text = s["Mobile"].PropertyValue.ToString();
                //lblPhone.Text = s["Phone"].PropertyValue.ToString();
            }

        }
    }
}
